dataannotations datetime range

85

dataannotations datetime range -

[Range(typeof(DateTime), "1/2/2004", "3/4/2004",
        ErrorMessage = "Value for {0} must be between {1} and {2}")]
public datetime Something { get; set;}

Comments

Submit
0 Comments